package com.candy.candymember.threadInfo;

/**
 * @author suYanLong
 * @version 1.0
 * @date 2023/3/7 16:51
 * @Description 描述
 */
public class OauthContext {

    private static final ThreadLocal<String> loginValThreadLocal = new ThreadLocal<>();

    public static String get() {
        return loginValThreadLocal.get();
    }

    public static void set(String loginVal) {
        loginValThreadLocal.set(loginVal);
    }

    public static void clear() {
        loginValThreadLocal.remove();
    }

}
